package offer;

import java.util.HashMap;

public class Class03 {

    public int findRepeatNumber(int[] nums) {
        HashMap<Integer,Integer> map = new HashMap<>();
        for (int i = 0; i <nums.length; i++) {
            if (!map.containsKey(nums[i])){
                return  nums[i];
            }
            map.put(nums[i],i);
        }

        return  0;


    }
}
